package com.fa4j.product.category.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fa4j.common.data.model.Base;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 实体-商品分类属性
 *
 * @since 2025-11-22 21:06:24
 */
@Data
@TableName(value = "t_product_category_attribute", autoResultMap = true)
@Schema(description = "商品分类属性")
public class CategoryAttribute extends Base {

    @TableId(type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    @Schema(description = "分类ID")
    private Integer categoryId;

    @Schema(description = "商品分类属性名称")
    private String name;

    @Schema(description = "是否必填")
    private Boolean required;

    @Schema(description = "是否多选")
    private Boolean multi;

    @Schema(description = "优先级")
    private Integer priority;

    @Schema(description = "操作人ID")
    private Long operatorId;

}
